package com.yian.houseproperty.mapper;

import com.yian.houseproperty.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yian
 * @since 2022-03-14
 */
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from user where uid in (select uid from houseinfo)")
    public List<User> getOwners();

}
